Skip to content

Conversation

@yashwantbezawada
Copy link

On Windows, calling client.beta.skills.create() fails with "Skill contains path with invalid characters" because str(path.relative_to()) produces backslash-separated paths like dir\file.txt.

The API expects POSIX-style paths with forward slashes regardless of OS. Changed both _collect_files() and _async_collect_files() to use .as_posix() instead of str().

Fixes #1051

On Windows, str(Path) produces backslash-separated paths which
the API rejects. Use .as_posix() to ensure forward slashes on
all platforms.

Fixes anthropics#1051
@yashwantbezawada yashwantbezawada requested a review from a team as a code owner November 2, 2025 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills.create requires posix paths

1 participant